package com.permissionmanager.exception;

import lombok.Getter;

/**
 * 自定义的异常类
 *
 */
@Getter
public class ServiceException extends RuntimeException{

    private final String CODE;

    // 逻辑层异常
    public ServiceException(String msg){
        super(msg);
        this.CODE = "500";
    }
    public ServiceException(String code, String msg) {
        super(msg);
        this.CODE = code;
    }
}